<%@ Page Language="VB" MasterPageFile="~/admin/login.master" Title="Login" %>

<script runat="server">
    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Me.Form.DefaultFocus = Login1.UniqueID
        If Request.QueryString("LogOut") = "1" Then
            FormsAuthentication.SignOut()
            Response.Redirect("~/default.aspx")
        End If
        If Roles.IsUserInRole("admin") Then
            Response.Redirect("~/admin/list.aspx")
        End If
        Dim tb As TextBox = Login1.FindControl("UserName")
        tb.Focus()
    End Sub
</script>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    <center>
        

  <div class="jumbotron">
       <div class="container">
   
   <asp:Login ID="Login1" runat="server" FailureText="Anmeldung fehlgeschlagen"
             LoginButtonText="Log in"
            TitleText="Please sign in" DisplayRememberMe="false" MembershipProvider="AccessMembershipProvider"
            UserName="" DestinationPageUrl="~/admin/list.aspx" TextBoxStyle-CssClass="form-control" TitleTextStyle-CssClass="page-header">
            <TitleTextStyle CssClass="page-header">
            </TitleTextStyle>
            <LoginButtonStyle cssclass="btn btn-lg btn-primary btn-block"/>
            <TextBoxStyle Font-Size="0.8em" />
            <InstructionTextStyle Font-Italic="True"  ForeColor="Black" />
        </asp:Login>
 <br /><br /><br /><br />
            </div>

         </div>
       
          
  
        
        
    </center>
</asp:Content>
